package com.itools.core.annotation;

import com.itools.core.em.StrategyType;
import org.springframework.stereotype.Service;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @project: itools-backend
 * @description: 选择文件系统的策略注解
 * @author: XUCHANG
 * @create: 2021-04-01 15:57
 */
@Service
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface FileStrategy {
    /**
     * 文件系统策略的值
     * @return
     */
    StrategyType value() default StrategyType.NIO;

}
